//
//  HomeRequest.h
//  Learn
//
//  Created by cjg on 2018/11/3.
//  Copyright © 2018 cjg. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HomeListRootModel.h"
#import "BaseRequestHeader.h"
#import "TextbookModel.h"
#import "TextbookDetailModel.h"
#import "TextbookChapterModel.h"
#import "TextbookChapterDetailModel.h"
#import "TextbookQuestionsModel.h"
#import "GradeModel.h"
#import "HSTextBookModel.h"
#import "HSTextBookUnitModel.h"
#import "HSTextBookUnitWordModel.h"
#import "HSTextBookWordinfoModel.h"
#import "ScanBookListModel.h"
#import "TextBookUnitSourceListModel.h"

@interface HomeRequest : NSObject

//首页列表接口
+ (void)getHomeListDataWithParam:(NSDictionary *)param result:(void(^)(HomeListRootModel *listModel))resultBlock;

//听说教材列表
+(void)getTextbookListWithGrade:(NSString *)grade type:(NSString *)type page:(NSInteger)page result:(void(^)(NSMutableArray <TextbookModel *> *list))resultBlock;

//听说教材详情
+(void)getTextbookDetailWithProductId:(NSInteger)productId type:(NSString *)type result:(void(^)(TextbookDetailModel *model))resultBlock;

//章节列表
+(void)getTextbookChapterListWithProductId:(NSInteger)productId type:(NSString *)type order:(NSString *)order result:(void(^)(NSMutableArray <TextbookChapterModel *> *list))resultBlock;
//
//章节详情
+(void)getTextbookChapterDetailWithProductId:(NSInteger)productId type:(NSString *)type chapterid:(NSUInteger)chapterId result:(void(^)(TextbookChapterDetailModel *model))resultBlock;

/// 测试题
/// - Parameters:
///   - testId: testId description
///   - resultBlock: resultBlock description
+(void)getTextbookTestQuestionsWithId:(NSString *)testId type:(NSString *)type result:(void(^)(TextbookQuestionsModel *model))resultBlock;

/// 年级
/// - Parameter resultBlock: resultBlock description
+(void)getGradeListWithResult:(void(^)(NSMutableArray <GradeModel *> *list))resultBlock;

/// Description
/// - Parameter resultBlock: resultBlock description
+(void)getTextBookWithResult:(void(^)(NSMutableArray <HSTextBookModel *> *list))resultBlock;

/// Description
/// - Parameter resultBlock: resultBlock description
+(void)getTextBookUnitWithId:(NSString *)pId Result:(void(^)(NSMutableArray <HSTextBookUnitModel *> *list))resultBlock;

+(void)getTextBookUnitWorkWithId:(NSString *)pId Result:(void(^)(NSMutableArray <HSTextBookUnitWordModel *> *list))resultBlock;

+(void)getTextBookWordInfoWithId:(NSString *)pId moduleId:(NSUInteger)moduleId Result:(void(^)(TextBookUnitSourceListModel *list))resultBlock;

+(void)scanBookWithKey:(NSString *)key page:(NSInteger)page result:(void(^)(NSMutableArray <ScanBookModel *> *list))resultBlock;

+ (void)upLoadAudioWithPath:(NSString *)filePath result:(void(^)(NSDictionary *url))resultBlock;

+ (void)submitTingshuoworkWith:(NSDictionary *)param result:(void(^)(NSDictionary *data))resultBlock;

// 提交答案接口
+ (void)submitAnserWith:(NSDictionary *)param result:(void(^)(BOOL ret))resultBlock;

+(void)getTextbookListWithKeyWord:(NSString *)keyWord type:(NSString *)type page:(NSInteger)page result:(void(^)(NSMutableArray <TextbookModel *> *list))resultBlock;
@end

